package com.beijiteshop.shop.ui.login

import com.beijiteshop.libcommon.network.RetrofitClient
import com.beijiteshop.shop.ui.login.repo.UserRepo
import com.beijiteshop.shop.ui.login.repo.UserService
import com.beijiteshop.shop.ui.login.vm.UserVM
import org.koin.android.viewmodel.dsl.viewModel
import org.koin.dsl.module

/**
 * @Author LiaoZhongKai
 * @Date 2021/3/12 20:22
 * @Description
 */

val loginMoudle = module {
    single {
        get<RetrofitClient>().getService(UserService::class.java)
    }

    single {
        UserRepo(get())
    }

    viewModel {
        UserVM(get())
    }
}